﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Windows.Forms;

namespace VideoScreensaver
{
    /// <summary>
    /// Interaction logic for BlackWindow.xaml
    /// </summary>
    public partial class BlackWindow : Window
    {
        public BlackWindow(Screen screen)
        {
            InitializeComponent();
            System.Drawing.Rectangle r = screen.WorkingArea;
            this.Top = r.Top;
            this.Left = r.Left;
            this.Show();
        }
        private void OnLoad(object sender, RoutedEventArgs e)
        {
            this.WindowState = System.Windows.WindowState.Maximized;
        }
    }
}
